package nconv.convert;

import nconv.utils.LogCenter;
import org.apache.poi.hwpf.converter.WordToHtmlConverter;

public class FD2WikiConverter extends WikiConverter{
	
	public FD2WikiConverter(String docName) {
		super(docName);
	}

	protected boolean shouldKeepSpaces(String text) {
		return true;
	}
	
	public static void main(String[] args1) throws Exception {

		ConvertContext.setDocType(ConvertContext.DOC_TYPE.FD);

		WordToHtmlConverter.main(new String[] {"D:\\workspace\\eclipse\\work2wiki\\input\\cgbu_eg_826.doc",
			"D:\\workspace\\eclipse\\work2wiki\\output\\cgbu_eg_826.htm"});
	//	ConvertUtils.processFDDoc("FD007890.doc");
	//	ConvertUtils.processFDDoc("cgbu_eg_1036.doc");
	//	ConvertUtils.processFDDoc("cgbu_eg_926.doc");
		ConvertUtils.processFDDoc("cgbu_eg_826.doc");
	//	ConvertUtils.processFDDoc("cgbu_eng_24_1259.doc");

		LogCenter.updateLogs();
	}

}
